Skip to content

Make sure we never suggest back invalid characters#15421

Merged
josevalim merged 1 commit into
elixir-lang:mainfrom
sabiwara:invalid-unicode-atom
May 27, 2026
Merged

Make sure we never suggest back invalid characters#15421
josevalim merged 1 commit into
elixir-lang:mainfrom
sabiwara:invalid-unicode-atom

Conversation

@sabiwara
Copy link
Copy Markdown
Contributor

@sabiwara sabiwara commented May 26, 2026

Tentative fix for #15419

Wrong: [476]
ConfusableSkeleton: [117,776,768]
Simpler: [476]

There's probably an issue with confusable_skeleton or tokenize here to be fixed as well, so it might not be the final fix, but either way I think it never makes sense to suggest back the same Wrong characters?

To be backported.

Note: this comes from

:unicode.characters_to_nfd_list(s)
:

:unicode.characters_to_nfd_list([476])
[117, 776, 768]

@sabiwara sabiwara force-pushed the invalid-unicode-atom branch from 5b1feb3 to 74afeec Compare May 27, 2026 00:03
@josevalim josevalim merged commit db6e802 into elixir-lang:main May 27, 2026
24 of 25 checks passed
@josevalim
Copy link
Copy Markdown
Member

💚 💙 💜 💛 ❤️

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants